package org.osomit.sacct.entity;

import org.json.simple.JSONObject;

/**
 *
 * @author Jian Fang (John.Jian.Fang@gmail.com)
 *
 * Date: Jun 28, 2009
 *
 */
public class ApplicationAccount extends Entity {
    private static final long serialVersionUID = 5487193047204959074L;
    
    public final static String ENTITY_NAME = "ApplicationAccount";
    
    public final static String NAME = "name";
    private String name;

    public final static String PASSWORD = "password";
    private String password;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public JSONObject toJSON() {
        JSONObject obj = new JSONObject();

        obj.put(NAME, this.name);
        obj.put(PASSWORD, this.password);

        return obj;
    }
}
